<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>面向对象-放大镜-二倍图</title>
<link rel="stylesheet" href="./enlarge.css">
</head>
<body>

<div class="box enlarge1">
    <!-- 图片 -->
    <div class="img">
        <div class="mask"></div>
    </div>
    <!-- 放大镜 -->
    <div class="enlarge"></div>
</div>


<!-- <script src="./demo.js"></script> -->
<script type="module">
import Enlarge from './enlarge.js'

const enlarge1 = new Enlarge('.enlarge1')


/*
栈                        堆
Enlarge.prototype：地址0  地址0 {init,overOut,maskMove,tbEnlarge, constructor, __proto__}
enlarge1：地址1           地址1 {el, __proto__：地址0}
enlarge2：地址2           地址2 {el, __proto__：地址0}
*/
</script>
</body>
</html>